package jejunu.androboys.QuickCall;

import jejunu.androboys.QuickCall.Component.FileController;
import jejunu.androboys.QuickCall.Lib.CustomTabActivity;
import jejunu.androboys.QuickCall.Lib.TabInfo;
import jejunu.androboys.Splash.ViewSplashAcvity;
import android.content.Intent;
import android.os.Bundle;

public class MainTabActivity extends CustomTabActivity 
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        
        Intent splash = new Intent(this, ViewSplashAcvity.class);
		startActivity(splash);
        
        String str_bt_m=(String) getText(R.string.button_mode);
        String str_mt_m=(String) getText(R.string.motion_mode);
        String str_set_m=(String) getText(R.string.setting);
        
        addTab(new TabInfo(ButtonModeActivity.class, "tab1", str_bt_m),new TabInfo(MotionModeActivity.class, "tab2", str_mt_m),new TabInfo(SettingModeAcrivity.class, "tab3", str_set_m));
        
        FileController fc=new FileController(this);
        
        int mode=fc.loadModeFile();
        setsetCurrentTab(mode);
    }
}